<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/business/include/doctype.jsp" %>
<script type="text/javascript">
function goSubmit() {
	//요청범위 체크
	if(!document.form.result[0].checked && !document.form.result[1].checked ){
	  alert("승인여부를 선택하세요!");
	  return false;
	}
	if(document.form.result[1].checked ){
		if(document.form.comment.value == ""){
		  alert("거절사유를 입력하세요!");
		  return false;
	    }  
	}
	
}
</script>
</head>
<body>
	<div id="wrap">
		<div class="header">
			<h1>SERVICE DESK</h1>
		</div><!-- // header -->
		<div class="content">
			<div class="service">
			<form name="form" action="${requestScope.contextPath}/business/mServiceDesk_/mServiceDeskApplyView.do" method="post" onsubmit="return goSubmit();" >
				<div class="table5">
					<input type="hidden" name="SeqNo" value="${SeqNo }">
					<input type="hidden" name="appgubun" value="${APPGUBUN }">
					<input type="hidden" name="appstatus" value="${APPSTATUS }">
					<input type="hidden" name="page" value="${page}">
					<input type="hidden" name="endY" value="${param.endY}">
					<table summary="" cellspacing="0" style="width:100%;">
						<caption>서비스 요청</caption>
						<colgroup>
							<col style="width:25%" />
							<col style="width:75%" />
						</colgroup>
						<tbody>
							<tr>
								<th scope="row">요청자</th>
								<td>${REQNAME }&nbsp;</td>
							</tr>
							<tr>
								<th scope="row">요청내역</th>
								<td>${DETAIL }&nbsp;</td>
							</tr>
							<tr>
								<th scope="row">요청일</th>
								<td>${REQDATE }&nbsp;</td>
							</tr>
							<tr>
								<th scope="row">승인여부</th>
								<td>
									<input type="radio" name="result" value="Y" id="radio1" /> <label for="radio1">승인</label>
									<input type="radio" name="result" value="N" id="radio2" /> <label for="radio2">거절</label>
								</td>
							</tr>
							<tr>
								<th scope="row">거절사유</th>
								<td><textarea cols="" rows="8" name="comment" class="comment"></textarea></td>
							</tr>
						</tbody>
					</table>
				</div>
				<p class="btn_more">
				<input type="image" src="${requestScope.contextPath}/images/btn/btn_ok.gif" alt="확인" />&nbsp;&nbsp;<a href="javascript:history.back();"><img src="${requestScope.contextPath}/images/btn/btn_reset.gif" alt="취소" /></a>
				</p>
				</form>
			</div>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>
